#define  _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void test(int(*arr)[5], int r, int c)
{
	int i = 0;
	int j = 0;
		for(j = 0;j < r;j++)
		{
			
			for (i = 0;i < c;i++)
			{
				printf("%d ", *(*(arr + j) + i));
			}
			printf("\n");
		}
}
int main()
{
	int arr[3][5] = { 1,2,3,4,5, 2,3,4,5,6, 3,4,5,6,7 };
	test(arr, 3, 5);
	return 0;
}